import http from "../server";

// 用户密码重置
export const updateUserPwd = (data) =>
  http.post("/system/user/profile/updatePwd", data);
// 查询用户个人信息
export const getUserProfile = () => http.get("/system/user/profile");
// 修改用户个人信息
export const updateUserProfile = (data) =>
  http.post("/system/user/profile/edit", data);
// 用户头像上传
export const uploadAvatar = (data) =>
  http.post("/system/user/profile/avatar", data);

// // 用户头像上传
// export function uploadAvatar(data) {
//   return upload({
//     url: '/system/user/profile/avatar',
//     name: data.name,
//     filePath: data.filePath
//   })
// }
